@extends('default.mobile.layouts.personalPublic')
@section('title','我的作品-'.Site::get('webname'))
{{--首页css--}}
@section('headcss')
    @parent
    <link rel="stylesheet" href="{{asset('/default/css/mobile/personal/common.css')}}">
    <link rel="stylesheet" href="{{asset('/default/css/mobile/jquery/select.css')}}">
@endsection
{{--头部标签--}}
@section('tag','我的作品')
@section('link') href="{{url('mobile/personal/resume_manage?parameter=works&resume_id='.$resume->id)}}" @endsection

{{--主体内容--}}
@section('content')
    <div class="fill" id="fill" style="overflow: hidden">
        <div class="form_info" id="form_info">
            <form action="" onsubmit="return checkWorks('#worksForm','/mobile/personal/add_works')"
                    method="post" id="worksForm" name="worksForm">
                {{csrf_field()}}
                <input type="hidden" name="resume_id" id="resume_id"  value="{{$resume->id}}">
                <dl>
                    <dt>作品名称<span class="asterisk">*</span></dt>
                    <dd><input type="text" name="works_name" id="works_name"  value="{{old('works_name')}}" placeholder="请输入作品名称" autocomplete="off"></dd>
                </dl>
                <dl class="arrow" id="works_description">
                    <dt>作品描述<span class="asterisk">*</span></dt>
                    <dd>
                        <textarea name="description" id="description" style="display: none;"></textarea>
                        <span class="select_text">请填写作品描述</span>
                    </dd>
                </dl>
                <dl class="arrow" >
                    <dt>上传作品<span class="asterisk">*</span></dt>
                    <dd></dd>
                </dl>
                <div class="form_sub"><input type="submit" id="sub" value="保存"></div>
            </form>
        </div>
    </div>
@endsection

@section('footerjs')
    @parent
    <script type="text/javascript" src="{{asset('/default/js/mobile/jquery/jquery.textarea.js')}}"></script>
    <script type="text/javascript" src="{{asset('/default/js/mobile/personal/resume_manage.js')}}"></script>
    <script type="text/javascript" src="{{asset('/default/js/mobile/jquery/zepto.scroll.js')}}"></script>

    <script>
        $(function(){
            var fill = $("#fill").find('#form_info');
            //点击作品描述
            fill.find("#works_description").textarea({
                text_title:'作品描述',
                hidden: '#description'
            });
        });
    </script>
@endsection